<template>
  <div>
    <h1>这是child组件</h1>
    <h1>{{ msg }}</h1>
    <button @click="num++">{{ num }}</button>
    <button>尝试修改父组件的msg</button>
  </div>
</template>

<script>
let obj = {
  num: 1,
};
export default {
  props: ["msg"],
  data() {
    return {
      num: 1,
    };
  },
  methods: {},
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped></style>
